package com.jiangruan.javaproject.service;/**
 * @author:xulonghua
 * @email:3162193565@qq.com
 * desc:获取出块难度
 * datatime 2021/12/13 23:06
 */

import com.alibaba.fastjson.JSONObject;
import com.jiangruan.javaproject.Constants;
import com.jiangruan.javaproject.bean.Getdifficulty;

/**
 *@author:xulonghua
 *@email:3162193565@qq.com
 *desc:
 *datetime 2021/12/13 23:06
 */
public class GetDifficulty {
    public Getdifficulty getdifficulty(int id){
        String result = UtilCommon.utilcommon ( id, Constants.GetDifficulty );
        Getdifficulty getdifficulty = JSONObject.parseObject ( result, Getdifficulty.class );
        return getdifficulty;

    }
}
